package com.aohe.youzi.fragment.mine;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.viewbinding.ViewBinding;

import com.aohe.youzi.R;
import com.aohe.youzi.databinding.FragmentHomeBinding;
import com.aohe.youzi.databinding.FragmentMineBinding;
import com.aohe.youzi.fragment.home.HomePresenter;
import com.aohe.youzi.fragment.home.IHomeView;
import com.aohe.youzi.mvp.MvpFragment;

import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

public class MineFragment extends MvpFragment<MinePresenter> implements IMineView {

    private FragmentMineBinding binding;

    @Override
    protected void initView(Bundle savedInstanceState) {
    }

    @Override
    protected void initData() {
        binding.tvName.setText("MVP");
    }

    @Override
    protected ViewBinding getViewBinding() {
        binding = FragmentMineBinding.inflate(getLayoutInflater());
        return binding;
    }

    @NonNull
    @Override
    public MinePresenter createPresenter() {
        return new MinePresenter();
    }

    @Subscribe(threadMode = ThreadMode.MAIN)
    public void onMainThread(Object object) {
    }
}
